package com.lanhe.game.controller.login;


import com.lanhe.framework.web.service.AppLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/game/login")
public class AppLogin {

    @Autowired
    private AppLoginService appLoginService;


    @GetMapping("login")
    public Map<String, Object> login(@RequestParam String code){
        System.err.println("code "+code);
        Map<String, Object> resMap = appLoginService.sysAppUserService(code);
        return resMap;
    }
}
